<template>
  <div class="login-container">
    <el-button type="primary" class="primary" @click="getUserInfo">登录</el-button>
  </div>
</template>
 
<script>
import {debounce, throttle} from "@/utils/MyTools";
 
export default {
  name: "login",
  data(){
    return{
      num:0,
    }
  },
  methods: {
    test() {
      // console.log(`测试防抖,点击了${this.num}次`)
    },
    getUserInfo:debounce(()=>{
      // console.log(`测试防抖`);
    }, 1000),

  },
}
</script>
 
 